home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 031a / sdu140.zip / WIN30.BAT < prev   
DOS Batch File  |  1991-10-24  |  2KB  |  46 lines

  1. @ECHO OFF
  2. @ECHO  
  3. @ECHO The function of this batch file is to check to see if the COMMDLG.DLL
  4. @ECHO file is available in your WINDOWS\SYSTEM directory and to copy it
  5. @ECHO there if it is not.  It is only needed if your are running Microsoft
  6. @ECHO Windows Version 3.0.  It is not needed for Microsoft Windows Version
  7. @ECHO 3.1 or higher.
  8. @ECHO  
  9.  
  10. IF %1.==. GOTO SYNTAX
  11. @ECHO If you are running Microsoft Windows 3.1 or higher you may terminate
  12. @ECHO this batch file by pressing Ctrl-C and responding Y to the prompt.
  13. @ECHO Otherwise
  14. PAUSE
  15. IF %1==?  GOTO HELP
  16. IF NOT EXIST COMMDLG.DLL GOTO NODLL
  17. IF NOT EXIST %1\WIN.INI GOTO NOTDIR
  18. IF EXIST %1\COMMDLG.DLL GOTO EXISTS
  19. IF EXIST %1\SYSTEM\COMMDLG.DLL GOTO EXISTS
  20. COPY COMMDLG.DLL %1
  21. GOTO EXIT
  22. :HELP
  23. @ECHO %0 must be run from the drive and directory you have the SABDU
  24. @ECHO distribution files in.  Normally this would be the root directory
  25. @ECHO of your A: or B: drive.
  26. :SYNTAX
  27. @ECHO The correct syntax for %0 is:
  28. @ECHO    %0 d:\windows
  29. @ECHO Where d:\windows is the drive and directory you installed Microsoft
  30. @ECHO Windows 3.0 in.
  31. GOTO EXIT
  32. :NOTDIR
  33. @ECHO %1 is not the WINDOWS directory.
  34. goto exit
  35. :EXISTS
  36. @ECHO COMMDLG.DLL already exists.
  37. @ECHO It is not necessary to copy it again.
  38. goto exit
  39. :NODLL
  40. @ECHO COMMDLG.DLL is not in the current directory.  %0 must be run from
  41. @ECHO the drive and directory you have the SABDU distribution files in.
  42. @ECHO Normally this would be the root directory of your A: or B: drive.
  43. GOTO EXIT
  44. :EXIT
  45. @ECHO  
  46.